package com.atguigu.common.to.mq;

import lombok.Data;

@Data
public class WareStockLockTo {

    /**
     * 库存解锁任务ID
     */
    private Long taskId;

    /**
     * 订单号
     */
    private String orderSn;

    /**
     * 库存解锁详情信息
     */
    private WareStockLockDetailTo detail;

    @Data
    public static class WareStockLockDetailTo {
        private Long id;
        /**
         * sku_id
         */
        private Long skuId;
        /**
         * sku_name
         */
        private String skuName;
        /**
         * 购买个数
         */
        private Integer skuNum;
        /**
         * 工作单id
         */
        private Long taskId;
        /**
         * 仓库id
         */
        private Long wareId;
        /**
         * 1-已锁定  2-已解锁  3-扣减
         */
        private Integer lockStatus;
    }
}
